<?php
	session_start();
?>
<?php 
if(isset($_GET['noidung'])){
	$nd=$_GET['noidung'];
}else{
	$nd="no";
}
?>
<?php
include "connect.php";
include "thanh_phan/phan_trang.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Rao vặt solution | Trang chủ</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/sidebarstyle.css" rel="stylesheet" type="text/css" />
<link href="css/menustyle.css" rel="stylesheet" type="text/css" />
<link href="css/templates.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="css/form.css" />
<link rel="stylesheet" type="text/css" href="css/table_css.css"/>
<link rel="stylesheet" type="text/css" href="css/leftmenu_style.css"/>

<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/script.js"></script>
<script type="text/javascript" src="js/cufon-yui.js"></script>
<script type="text/javascript" src="js/arial.js"></script>
<script type="text/javascript" src="js/cuf_run.js"></script>

<script type="text/javascript" src="js/validate.js"></script>
<script src="php_calendar/scripts.js" type="text/javascript"></script>
<script type="text/javascript" src="js/ajax.js"></script>
<script src="js/floater_xlib.js" type=text/javascript></script>
<script type="text/javascript" src="js/scrolltopcontrol.js"></script>
<script type=text/javascript>
var slideTime = 500;  
var floatAtBottom = false;

function pepsi_floating_init()  
{  
    xMoveTo('floating_banner_right', 887 - (1024-screen.width), 0);  

    winOnResize(); // set initial position  
    xAddEventListener(window, 'resize', winOnResize, false);  
    xAddEventListener(window, 'scroll', winOnScroll, false);  
}  
function winOnResize() {  
    checkScreenWidth();  
    winOnScroll(); // initial slide  
}  
function winOnScroll() {  
  var y = xScrollTop();  
  if (floatAtBottom) {  
    y += xClientHeight() - xHeight('floating_banner_left');  
  }  
    
  xSlideTo('floating_banner_left', (screen.width - (800-775) - 1000)/2-115 , y, slideTime);  // Chỉnh khoảng cách bên trái  
  xSlideTo('floating_banner_right', (screen.width - (800-775) + 1000)/2, y, slideTime); // // Chỉnh khoảng cách bên Phải  
}  
      
function checkScreenWidth()  
{  
    if( document.body.clientWidth < 926 )  
    {      
        document.getElementById('floating_banner_left').style.display = 'none';  
        document.getElementById('floating_banner_right').style.display = 'none';  
    }  
    else  
    {  
        document.getElementById('floating_banner_left').style.display = '';  
        document.getElementById('floating_banner_right').style.display = '';      
    }  
}
</script>
<style>
a {color:#78bbe6;}
</style>
</head>
<body>
<div id="floating_banner_left" style="text-align:right; position:absolute; overflow:hidden; top: 0px; left: 0px; width: 120px; border: 0px solid #000;">  
<div id="floating_banner_left_content">  
    <a href="#" target="_blank"><img src="images/Banner_ben_1.jpg" border="0" width="120px" alt="" /></a><br />  
</div>  
</div> 
<div id="floating_banner_right" style="text-align:left; position:absolute; overflow:hidden; top: 0px; right: 0px; width: 120px; border: 0px solid #000;">  
<div id="floating_banner_right_content">  
    <a href="#" target="_blank"><img src="images/Banner_ben_2.jpg" border="0" width="120px" alt="" /></a><br />  
</div>  
</div>  
<script>  
    runQuery();  
</script>  
<script>  
    pepsi_floating_init();  
</script> 
<div class="main">
  <div class="header">
		<?php
			include "thanh_phan/logo.php";
		?>
		<?php
			switch($nd){
			case 'tk' :include "thanh_phan/header_timkiem.php";
				break;
			case 'tt' :include "thanh_phan/header_thongtin.php";
				break;
			case 'dktv' :include "thanh_phan/header_dangki.php";
				break;
			case 'dn' :include "thanh_phan/header_dangnhap.php";
				break;
			case 'ql' :include "thanh_phan/header_quanly.php";
				break;	
			case 'canhan' :include "thanh_phan/header_canhan.php";
				break;
			//dang tin
			case 'dtrv' :include "thanh_phan/header_dangtin.php";
				break;
			case 'dtvip' :include "thanh_phan/header_dangtin.php";
				break;
			case 'dttd' :include "thanh_phan/header_dangtin.php";
				break;
			default : include "thanh_phan/index_header.php";
			}
		?>
		<?php
		include "thanh_phan/header_bg.php";
		?>
	</div>
	<div class="sidebar">
		<?php
			include "thanh_phan/leftmenu.php";
		?>
	</div><br /><br /><br /><br />
	  <div class="mainbar" id="main">
		<?php
			switch($nd){
			case 'dktv' :include "thanh_vien/dang_ki_thanh_vien.php";
			break;
			case 'dn' :include "thanh_vien/dang_nhap.php";
			break;
			case 'tbkh' :include "thanh_vien/thong_bao_kich_hoat.php";
			break;
			case 'ds': include "thanh_phan/form_danhsach_mautin.php";
			break;
			case 'ql' :include "thanh_vien/quan_ly.php";
			break;
			case 'dstv' :include "thanh_vien/danh_sach_thanh_vien.php";
			break;
			case 'ttv' :include "thanh_vien/them_thanh_vien.php";
			break;
			case 'stv' :include "thanh_vien/sua_thanh_vien.php";
			break;
			case 'timtv' :include "thanh_vien/xu_ly_tim_thanh_vien.php";
			break;
			case 'dslvtd' :include "linh_vuc_td/danh_sach_lvtd.php";
			break;
			case 'tlvtd' :include "linh_vuc_td/them_lvtd.php";
			break;
			case 'slvtd' :include "linh_vuc_td/sua_lvtd.php";
			break;
			case 'dsq' :include "quyen/danh_sach_quyen.php";
			break;
			case 'tq' :include "quyen/them_quyen.php";
			break;
			case 'sq' :include "quyen/sua_quyen.php";
			break;
			case 'dstlt' :include "the_loai_tin/frm_danh_sach_the_loai.php";
			break;
			case 'ttlt' :include "the_loai_tin/frm_them_the_loai.php";
			break;
			case 'stlt' :include "the_loai_tin/sua_the_loai.php";
			break;
			case 'dsmt' :include "muc_tin/frm_ds_muc_tin.php";
			break;
			case 'tmt' :include "muc_tin/form_them_muc_tin.php";
			break;
			case 'smt' :include "muc_tin/sua_muc_tin.php";
			break;
			case 'canhan' :include "thanh_vien/quan_ly_ca_nhan.php";
			break;
			case 'trv' :include "thanh_vien/trangraovat.php";
			break;
			//tin tuyen dung
			case 'dsmt_td': include "dang_tin_td/ds_mau_tin_td.php";
			break;
			case 'them_td': include "dang_tin_td/them_mau_tin_td.php";
			break;
			case 'sua_td': include "dang_tin_td/sua_mau_tin_td.php";
			break;
			case 'dttd': include "dang_tin_td/dang_tin_td.php";
			break;
			case 'td_v': include "dang_tin_td/mau_tin_td_view.php";
			break;
			case 'kq_dttd': include "dang_tin_td/kq_dang_tin_td.php";
			break;
			//tin VIP & tin RV
			case 'dtvip': include "dang_tin_rv/dang_tin_vip.php";
			break;
			case 'dtrv': include "dang_tin_rv/dang_tin_rv.php";
			break;
			case 'kq_dtvip': include "dang_tin_rv/kq_dang_tin_vip.php";
			break;
			case 'dsmt_rv': include "dang_tin_rv/ds_mau_tin_rv.php";
			break;
			case 'them_rv': include "dang_tin_rv/them_mau_tin_rv.php";
			break;
			case 'sua_rv': include "dang_tin_rv/sua_mau_tin_rv.php";
			break;
			case 'dsmt_rv_v': include "dang_tin_rv/ds_mau_tin_rv_view.php";
			break;
			case 'rv_v': include "dang_tin_rv/mau_tin_rv_view.php";
			break;
			case 'tt': include "thanh_phan/thongtin.php";
			break;
			default: include "dang_tin_td/ds_mau_tin_td_view.php";
			}
		?>
	</div>
	<div class="clr"></div>
	<?php
	include "thanh_phan/footer_bg.php"
	?>
	<?php
	include "thanh_phan/footer.php"
	?>
</div>
</body>
</html>